
var apiConfig = {
    apiHostName: '/',
    //requestTimeOut: 5000,
};

var axiosRequest = axios.create({
    baseURL: apiConfig.apiHostName,
    timeout: apiConfig.requestTimeOut,
});

//响应请求拦截器
axiosRequest.interceptors.response.use(function (response) {
    if (response.status == 200) {
       return Promise.resolve(response.data);
    } else {
        vant.Notify({type:'danger',message:'系统服务异常!'});
        return Promise.reject(response);
    }
}, function (error) {
    vant.Notify({type:'danger',message:'系统服务异常!'});
    return Promise.reject(error);
});